home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
501-525
/
disk_521
/
a68k
/
a68k271.lzh
/
Makefile.a50
< prev
next >
Wrap
Makefile
|
1991-04-16
|
2KB
|
54 lines
# Simple makefile to compile and link the A68k Assembler.
# Created 23Jun87 by J.A. Lydiatt
# 19Mar90 - This version for Manx 5.0
# protos.h added April 16, 1991 by Charlie Gibbs.
OBJ= A68kmain.o Opcodes.o Operands.o Adirect.o A68kmisc.o\
Symtab.o Codegen.o wb_parse.o
SHARLIB1= A68k.doc makefile A68kdef.h A68kglb.h A68kmain.c Opcodes.c Operands.c\
Adirect.c A68kmisc.c Symtab.c Codegen.c wb_parse.c isspace.c
SRC= A68kmain.c Opcodes.c Operands.c Adirect.c A68kmisc.c\
Symtab.c Codegen.c wb_parse.c isspace.c
SHARLIB2= A68k.uue
# -ps - use 16 bit integers
# -wo - pointer to integer conversions are warnings, not errors
# -so - maximum optimization including:
# - two pass assembly for branch squeezing and other optimizations
# - put test at bottom for for(;;) loops
# - use inline macros for several functions - strlen() etc?
# - don't generate link/unlink if no local variables.
# - delay popping arguments until necessary.
# - allocate registers based on wighted usage counts.
# - replace duplicate strings with pointers to first occurance.
.c.o:
cc -ps -so -wo $*.c
.a.o:
A68k -d -o$*.o $*.a
A68k: $(OBJ)
ln -o A68k $(OBJ) -lc16
$(OBJ): A68kdef.h A68kglb.h protos.h
#
# Note: Manx's makefile seems to have a bug that forbids indirection
# such as "shar >lib a.c b.c c.c"
# however "make >lib" seems to work fine if you edit out the
# commands make echos as it proceeds through the makefile.
#
# Try make >ram:shardcp Archive
#
Archive:
shar $(SHARLIB1)
shar $(SHARLIB2)
Lint:
lint -iAztec:include Aztec:Stdlib.c Aztec:Defaults.c $(SRC)